package com.atguigu.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.atguigu.dao.OrderSettingDao;
import com.atguigu.pojo.OrderSetting;
import com.atguigu.service.OrderSettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service(interfaceClass = OrderSettingService.class)
@Transactional
public class OrderSettingServiceImpl implements OrderSettingService {

    @Autowired
    OrderSettingDao orderSettingDao;


    @Override
    public void addBatch(List<OrderSetting> dataList) {
        if(dataList!=null && dataList.size() != 0){
            for (OrderSetting orderSetting : dataList){
                    orderSettingDao.add(orderSetting);
                }
            }

        }




}
